// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/css/reset.css'
import MyHttpServe from '@/plugin/http.js'
import axios from 'axios'
import moment from 'moment'
// import express from 'express'

require('@/mock/userList.js')
Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.use(MyHttpServe)
Vue.prototype.$http = axios


// 全局过滤器
Vue.filter('formdate',(v)=>{
  return moment(v).format('yyyy-MM-DD')
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
